package aiku.numericalcontroloa;

import aiku.numericalcontroloa.Task.ScheduledTask;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@MapperScan("com.baomidou.mybatisplus.samples.quickstart.mapper")
@SpringBootApplication
public class NumericalControlOaApplication implements ApplicationRunner {

    @Autowired
    private ScheduledTask scheduledTask;

    public static void main(String[] args) {
        SpringApplication.run(NumericalControlOaApplication.class, args);
    }

    /**
     * 服务启动时执行
     * 
     * @param args
     */
    @Override
    public void run(ApplicationArguments args) {
        scheduledTask.createdAttendance();
    }
}
